import ReactDOM from "react-dom/client"
// import App from "@/pages/login"
// import App from "@/pages/home"
// import App from "@/pages/users"
import Routers from "@/router"
import { store } from "@/store"
//react-redux提供的Provider带上store把项目包起来
import { Provider } from "react-redux"
import { ConfigProvider } from "antd"
// mock.js模拟数据
// ※注：正式上线前，一定不要忘记关掉Mock.js！！！直接在src / main.jsx中注释掉import './mock'这段代码即可。
import "./mock"
import { detectOS } from "@/assets/js/commonLib"
// 引入Ant Design中文语言包
import zhCN from "antd/locale/zh_CN"
// Antd 5.x兼容React19
import "@ant-design/v5-patch-for-react-19"
import "@/assets/styles/frame.less"

// 判断操作系统
document.body.setAttribute("os", detectOS())

ReactDOM.createRoot(document.getElementById("root")).render(
  <Provider store={store}>
    <ConfigProvider locale={zhCN}>
      {/* <App /> */}
      <Routers />
    </ConfigProvider>
  </Provider>
)
